package component.controls.ui
{
	import component.controls.Button;
	import component.global.ComponentSetting;
	
	import flash.events.MouseEvent;
	
	public class ThumbButton extends Button
	{
		public function ThumbButton($width:int=ComponentSetting.BUTTON_DEFAULT_WIDTH, $height:int=ComponentSetting.BUTTON_DEFAULT_HEIGHT)
		{
			super("≡", $width, $height);
		}
		
		override public function set height(value:Number):void{
			_background.height = value;
			_label.y = (_background.height - _label.height)/2 - 1; 
		}
		
		override protected function __onMouseEventHandler(e:MouseEvent):void{
			switch(e.type){
				case MouseEvent.ROLL_OVER:
				case MouseEvent.MOUSE_UP:
				case MouseEvent.MOUSE_DOWN:
					_background.filters = _filters[1];
					break;
				case MouseEvent.ROLL_OUT:
					_background.filters = _filters[0];
					break;
			}
		}
	}
}